Skip to content

BUG: fix shebang for python3#478

Closed
RocketMaDev wants to merge 2 commits intoseccomp:mainfrom
RocketMaDev:fix-test
Closed

BUG: fix shebang for python3#478
RocketMaDev wants to merge 2 commits intoseccomp:mainfrom
RocketMaDev:fix-test

Conversation

@RocketMaDev
Copy link
Copy Markdown
Contributor

This is a commit apply fix from #440 since the old fix was not completed and stale. Just sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' tests/*.py could fix this problem.

Fix #477, close #440.

Only the python3 executable is guaranteed

Signed-off-by: RocketDev <ma2014119@outlook.com>
Though setup.py is deprecated, but we'd better fix shebang now...

Signed-off-by: RocketDev <ma2014119@outlook.com>
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 89.024%. remained the same
when pulling 8aa8ccf on RocketMaDev:fix-test
into 1a8730c on seccomp:main.

@pcmoore pcmoore changed the title BUG: Fix shebang for python3 BUG: fix shebang for python3 Apr 8, 2026
@pcmoore pcmoore added this to the v2.6.1 milestone Apr 8, 2026
@pcmoore
Copy link
Copy Markdown
Member

pcmoore commented Apr 8, 2026

Thanks for picking this up @RocketMaDev. This looks good to me, so I'm going to go ahead and merge this into the main branch via 18e4955, but leave this PR open so we can discuss backporting to the release-2.6 branch. I will note that I manually performed the /python/python3/ change in test 63 as it was just merged before this PR.

What do you think @drakenclimber, should we backport this for v2.6.z? I'm inclined to backport it.

@pcmoore
Copy link
Copy Markdown
Member

pcmoore commented Apr 10, 2026

I was talking with @drakenclimber outside this issue and he agreed we should do the backport, so I've done just that at 6abe14d.

Thanks again everyone!

@pcmoore pcmoore closed this Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use python3 hashbang in scripts

3 participants